package com.cci.kangdao.controller;

import com.alibaba.fastjson.JSON;
import com.cci.kangdao.dao.model.OcrRecordLog;
import com.cci.kangdao.dto.BaseResponse;
import com.cci.kangdao.service.OcrRecordLogService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @description:
 * @author: joe
 * @company: CTY
 * @since: 2023/11/14 21:53
 * @version: V1.0
 **/
@RestController
@Slf4j
public class OcrRecordLogController {
    @Autowired
    private OcrRecordLogService ocrRecordLogService;

    @RequestMapping("/ocrRecordLogSave.aspx")
    public BaseResponse ocrRecordLogSave(OcrRecordLog ocrRecordLogParam) {
//        if (StringUtils.isBlank(ocrRecordLogParam)) {
//            return BaseResponse.error(-99,"请输入参数");
//        }
//        OcrRecordLog ocrRecordLog = JSON.parseObject(ocrRecordLogParam, OcrRecordLog.class);
        return ocrRecordLogService.ocrRecordLogSave(ocrRecordLogParam);
    }
}
